package com.ermace.robo.jumper.game.Kill;

public enum KillSpree {
	NONE(0, "", -1), 
	KILLING_SPREE(10, "Killing Spree!", -1);
	
	public static KillSpree getSpreeByKills(int amount) {
		if (amount < 3)
			return NONE;
		else
			return KILLING_SPREE;
	}
	
	
	private final int score;
	private final String text;
	private final int soundId;
	
	private KillSpree(int score, String text, int soundId) {
		this.score = score;
		this.text = text;
		this.soundId = soundId;
	}

	/**
	 * @return the score
	 */
	public int getScore() {
		return score;
	}
	
	@Override
	public String toString() {
		return text;
	}
	
	/**
	 * @return the soundId.
	 * 		   -1 if the spree does not have a sound
	 */
	public int getSoundId() {
		return soundId;
	}
}
